package com.jxd.ordering.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @ClassName Usser
 * @Description TODO
 * @Author Ankailong
 * @Date 2022/9/27
 * @Version 1.0
 */
public class User extends Entity {
    @TableId(value = "userid",type = IdType.AUTO)
    private Integer userid;//用户编号
    private String account;//用户名（账号）
    private String pwd;//密码
    private String uname;//用户名称（姓名）
    private Integer permission;//权限等级
    private String headshot;//头像
    private Integer userno;//用户编号

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public Integer getPermission() {
        return permission;
    }

    public void setPermission(Integer permission) {
        this.permission = permission;
    }

    public String getHeadshot() {
        return headshot;
    }

    public void setHeadshot(String headshot) {
        this.headshot = headshot;
    }

    public Integer getUserno() {
        return userno;
    }

    public void setUserno(Integer userno) {
        this.userno = userno;
    }

    public User() {
    }

    public User(Integer userid, String account, String pwd, String uname, Integer permission, String headshot, Integer userno) {
        this.userid = userid;
        this.account = account;
        this.pwd = pwd;
        this.uname = uname;
        this.permission = permission;
        this.headshot = headshot;
        this.userno = userno;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", account='" + account + '\'' +
                ", pwd='" + pwd + '\'' +
                ", uname='" + uname + '\'' +
                ", permission=" + permission +
                ", headshot='" + headshot + '\'' +
                ", userno=" + userno +
                '}';
    }
}
